package com.aier.common.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "message", catalog = "abc")
public class Message implements java.io.Serializable {

    // Fields

    private Long mid;
    private String phone;
    private String content;

    /** default constructor */
    public Message() {
    }

    /** minimal constructor */
    public Message(Long mid) {
        this.mid = mid;
    }

    /** full constructor */
    public Message(Long mid, String phone, String content) {
        this.mid = mid;
        this.phone = phone;
        this.content = content;
    }

 // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "mid", unique = true, nullable = false)
    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    @Column(name = "phonenum")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}